//入口文件
import Vue from 'vue'

//导入App组件
import app from './App.vue'

// 导入vue-resource
import VueResource from 'vue-resource'
// 安装vue-resource
Vue.use(VueResource)


// 导入router
import VueRouter from 'vue-router'
Vue.use(VueRouter)


import './lib/mui/css/mui.css'
import './lib/mui/css/icons-extra.css'

import { Header,Swipe, SwipeItem } from 'mint-ui'
Vue.component(Header.name,Header)
Vue.component(Swipe.name,Swipe)
Vue.component(SwipeItem.name,SwipeItem)


// 导入App 根组件
import router from './router.js'

var vm = new Vue({
	el:'#app',
	render:c=> c(app),
	router // router  挂在路由对象到VM 实例上
})